package com.java.cloud.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName: SysMachine
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2019/10/16 0016 下午 3:37
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2019/10/16 0016        Fu Hao      v1.0.0         创建
 */

@ApiModel(value = "设备表")
@Table(name = "sys_machine")
@Data
@Accessors(chain = true)
public class SysMachine {

    /**
     * id
     */
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 设备编码
     */
    @Column(name = "code")
    @ApiModelProperty(value = "设备编码")
    private String code;

    /**
     * 所属型号
     */
    @Column(name = "model_id")
    @ApiModelProperty(value = "所属型号")
    private String modelId;

    /**
     * 状态: 0 = 锁定，1 = 待激活，2 = 待验证，3 = 正常
     */
    @Column(name = "status")
    @ApiModelProperty(value = "状态: 0 = 锁定，1 = 待激活，2 = 待验证，3 = 正常")
    private Integer status;

    /**
     * 绑定手机号码
     */
    @Column(name = "band_phone")
    @ApiModelProperty(value = "绑定手机号码")
    private String bandPhone;

    /**
     * 手机卡类型：mobile（移动）  unicom（联通）
     */
    @Column(name = "card_type")
    @ApiModelProperty(value = "手机卡类型：mobile（移动）  unicom（联通）")
    private String cardType;

    /**
     * 是否九阳锁定：0 = 否, 1 = 是）
     */
    @Column(name = "is_jy_lock")
    @ApiModelProperty(value = "是否九阳锁定：0 = 否, 1 = 是）")
    private Integer isJyLock;

    /**
     * 经度
     */
    @Column(name = "longitude")
    @ApiModelProperty(value = "经度")
    private String longitude;

    /**
     * 纬度
     */
    @Column(name = "latitude")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    /**
     * ICID
     */
    @Column(name = "iccid")
    @ApiModelProperty(value = "ICID")
    private String iccid;

    /**
     * 操作序列号
     */
    @Column(name = "seqnum")
    @ApiModelProperty(value = "操作序列号")
    private String seqnum;

    /**
     * 密钥
     */
    @Column(name = "opt_key")
    @ApiModelProperty(value = "密钥")
    private String optKey;

    /**
     * 临时key
     */
    @Column(name = "temp_key")
    @ApiModelProperty(value = "临时key")
    private String tempKey;

    /**
     * 短信发送渠道：GSM_MODEM 短信猫 SMARTCARD智能物联网卡
     */
    @Column(name = "sms_channel")
    @ApiModelProperty(value = "短信发送渠道：GSM_MODEM 短信猫 SMARTCARD智能物联网卡")
    private String smsChannel;

    /**
     * 热档数量
     */
    @Column(name = "heatnum")
    @ApiModelProperty(value = "热档数量")
    private Integer heatnum;

    /**
     * 冷档数量
     */
    @Column(name = "coolnum")
    @ApiModelProperty(value = "冷档数量")
    private Integer coolnum;

    /**
     * 是否IOT设备: 0 = 否， 1 = 是
     */
    @Column(name = "is_iot_mac")
    @ApiModelProperty(value = "是否IOT设备: 0 = 否， 1 = 是")
    private Integer isIotMac;

    /**
     * IOT设备密钥
     */
    @Column(name = "iot_secret")
    @ApiModelProperty(value = "IOT设备密钥")
    private String iotSecret;

    /**
     * IOT通讯类型:0 = 同步，1 = 异步
     */
    @Column(name = "iot_commication_type")
    @ApiModelProperty(value = "IOT通讯类型:0 = 同步，1 = 异步")
    private Integer iotCommicationType;

    /**
     * 阿里云iot-id
     */
    @Column(name = "iot_id")
    @ApiModelProperty(value = "阿里云iot-id")
    private String iotId;

    /**
     * 在线状态
     */
    @Column(name = "online_status")
    @ApiModelProperty(value = "在线状态")
    private String onlineStatus;

    /**
     * 上一次状态变更时间
     */
    @Column(name = "last_time")
    @ApiModelProperty(value = "上一次状态变更时间")
    private Date lastTime;

    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    @ApiModelProperty(value = "创建时间")
    private Date crtTime;

    /**
     * 创建人id
     */
    @Column(name = "crt_user")
    @ApiModelProperty(value = "创建人id")
    private String crtUser;

    /**
     * 创建人名称
     */
    @Column(name = "crt_name")
    @ApiModelProperty(value = "创建人名称")
    private String crtName;

    /**
     * 创建人IP
     */
    @Column(name = "crt_host")
    @ApiModelProperty(value = "创建人IP")
    private String crtHost;

    /**
     * 修改时间
     */
    @Column(name = "upd_time")
    @ApiModelProperty(value = "修改时间")
    private Date updTime;

    /**
     * 修改人id
     */
    @Column(name = "upd_user")
    @ApiModelProperty(value = "修改人id")
    private String updUser;

    /**
     * 修改人名称
     */
    @Column(name = "upd_name")
    @ApiModelProperty(value = "修改人名称")
    private String updName;

    /**
     * 修改人IP
     */
    @Column(name = "upd_host")
    @ApiModelProperty(value = "修改人IP")
    private String updHost;

    /**
     * 删除标识:0=否，1 = 是
     */
    @Column(name = "del_flag")
    @ApiModelProperty(value = "删除标识:0=否，1 = 是")
    private Integer delFlag;

}
